/*
    simplecookbook  -  simplecookbook.impressao.GerarLivro.java
                             -------------------
    begin                : 08/10/2008
    copyright            : (C) 2008 by cristovao
    email                : cristovao.wollieson@gmail.com
 ***************************************************************************/

/*
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful, but   *
 *   WITHOUT ANY WARRANTY; without even the implied warranty of            *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
 *   General Public License for more details.                              *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,   *
 *   MA  02111-1307 USA                                                    *
 ***************************************************************************/

/**
 * Pacote responsavel pela impressao de material impresso, ou de arquivos
 * que serao impressos em graficas
 * 
 * @author cristovao
 */
package org.ybacoby.simplecookbook.impressao;

import java.util.ArrayList;

import org.ybacoby.simplecookbook.exception.SimpleCookBookException;
import org.ybacoby.simplecookbook.receitas.Receitas;



/**
 * Classe responsavel por se comunicar com a geracao de livros
 * 
 * @author cristovao
 *
 */
public class GerarLivro implements IPrintBook {

	/**
	 * O tipo de documento que sera usado para a impressao
	 * de livros
	 */
	private IPrintBook document;
	
	/**
	 * Constructor
	 */
	public GerarLivro() {
		this.document = new PrintPDF();
	}

	/**
	 * @see org.ybacoby.simplecookbook.impressao.IPrintBook#addReceita(java.util.ArrayList)
	 */
	public void addReceita(ArrayList<Receitas> receita)
			throws SimpleCookBookException {
		this.document.addReceita(receita);

	}

	/**
	 * @see org.ybacoby.simplecookbook.impressao.IPrintBook#closeDocument()
	 */
	public void closeDocument() throws SimpleCookBookException {
		this.document.closeDocument();

	}

	public void openDocument(String autor, String titulo, String salvar,
			String logo) throws SimpleCookBookException {
		this.document.openDocument(autor, titulo, salvar, logo);
		
	}

}
